const express =require('express');
const app = express();


//配置跨域
const cors = require('cors');
app.use(cors());

//配置解析表单数据的中间件
app.use(express.urlencoded({ extended: false }));


//配置路由
const router = require('./router');
app.use(router);


//错误处理


app.listen(3008, () => {
    console.log('Server is running on port http://localhost:3008');
});
